﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComplexNumbers
{
    class Program
    {
        static void Main(string[] args)
        {
            Random rand = new Random();

            PriorityQueue<int> queue = new PriorityQueue<int>();
            int num = 500;

            for (int i = 0; i < num; i++)
            {
                queue.Enqueue(rand.Next(-500, 500));
            }

            foreach (int item in queue)
            {
                Console.WriteLine(item);
            }
        }
    }
}
